package com.zhongx.xingcd.zxxcd.config;

import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author Fan
 * <p>
 * Created on 2018/11/20 3:05 PM
 * Description : 应用启动时加载所有菜单
 */
public class ApplicationStartedListenner implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent sce) {

        WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(sce.getServletContext());
    }
}
